package com.atguigu.lease.common.constant;

/**
 * ClassName: RedisConstant
 * Package: com.atguigu.lease.common.constant
 * Description:
 *
 * @Author: tiantian
 * @Create: 2024/10/9 - 10:33
 * @Version: v1.0
 */
public class RedisConstant {
    //Reids相关的一些值定义为常量，例如key的前缀、TTL时长

    //前缀为ADMIN：后台管理系统

    //前缀
    public static final String ADMIN_LOGIN_PREFIX = "admin:login:";
    //TTL时长：60秒（超时时间）
    public static final Integer ADMIN_LOGIN_CAPTCHA_TTL_SEC = 60;

    //前缀为app：移动端的
    public static final String APP_LOGIN_PREFIX = "app:login:";
    public static final Integer APP_LOGIN_CODE_RESEND_TIME_SEC = 60;
    public static final Integer APP_LOGIN_CODE_TTL_SEC = 60 * 10;
}
